import { ref } from 'vue'
export default function () {
  const mouseX = ref(0)
  const mouseY = ref(0)
  document.addEventListener('mousemove', (event) => {
    console.log(event);
    mouseX.value = event.pageX
    mouseY.value = event.pageY
  })
  return {
    mouseX,
    mouseY
  }
}